<?php
 /**
 +------------------------------------------------------------------------------
 * Framk PHP框架
 +------------------------------------------------------------------------------
 * @package  Framk
 * @author   shawn fon <shawn.fon@gmail.com>
 +------------------------------------------------------------------------------
 */
 
class Framk {

 /* 
 +------------------------------------------------------------------------------
 * 定义文件夹全局变量; 加载框架必须文件
 +------------------------------------------------------------------------------
 * 定义分隔符、框架根目录、项目根目录、框架各功能目录	
 * 加载框架必须文件
 +------------------------------------------------------------------------------
 */	 		
	public function __construct() {
	
		define ( 'S', DIRECTORY_SEPARATOR );
		define ( 'FRAMK', dirname(__FILE__).'/');
		define ( 'APP_ROOT', ( strlen(APP_NAME)===0 ? ROOT : ROOT.APP_NAME.'/') );		
		$appFolderName = array ('Action', 'Cache', 'Extend','View');
		foreach ( $appFolderName as $value ) {
		define ( strtoupper ( $value ), APP_ROOT.$value.'/' );
		}							
		require (FRAMK . '_Function.php');	
		$requireFile = array ('Dispatcher','Action','Cache');
		foreach ( $requireFile as $value ) {
		_import(FRAMK.$value.'.class.php');
		}
		new Dispatcher ();		
	}				
	
 /*  +------------------------------------------------------------------------------ */
}//
?>